<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="baseurl" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>首页</title>
<style type="text/css">
</style>
</head>
<body>
	<div>
		<div><h1 style="text-align: center;">今日权限管理系统首页</h1></div>
		<div align="right">
				<div>登录人： ${userInfo.userName } | <a href="${baseurl}/logout.html">注销</a> | <a href="/cache/clearCache.html">清空授权信息</a></div>
		</div>
	</div>
	<div>
		<table>
			<tbody>
				<tr><th align="left">菜单：</th></tr>
				<c:if test="${userInfo.permissons!=null }">
					<c:forEach items="${userInfo.permissons }" var="perm">
						<tr><th><a href="${baseurl} ${perm.url }">${perm.name }</a></th></tr><%-- ${baseurl }/ --%>
					</c:forEach>
				</c:if>
			</tbody>
		</table>
	</div>
</body>
</html>